// 权限接口
export default {
    pressMock: options => {
        let { role } = JSON.parse(options.body);
        console.log(role);
        if (role == '管理员') {
            return {
                code: 200,
                msg: '请求成功',
                data: [
                    // 根据角色返回左侧菜单栏选项
                    {
                        path: 'shenpi',
                        meta: {
                            title: '审批管理',
                            icon: 'el-icon-platform-eleme',
                        },
                        name: 'Shenpi',
                    },
                    {
                        path: 'qingjia',
                        meta: {
                            title: '请假审批',
                            icon: 'el-icon-platform-eleme',
                        },
                        name: 'Qingjia',
                    },
                    {
                        path: 'woqingjia',
                        meta: {
                            title: '我要请假',
                            icon: 'el-icon-phone',
                        },
                        name: 'Woqingjia',
                    },
                ],
            };
        } else {
            return {
                code: 200,
                msg: '请求成功',
                data: [
                    // 根据角色返回左侧菜单栏选项
                    {
                        path: 'woqingjia',
                        meta: {
                            title: '我要请假',
                            icon: 'el-icon-phone',
                        },
                        name:'Woqingjia'
                    },
                ],
            };
        }
    },
};
